﻿using Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRealize
{
  public interface ICFFK
  {
        //I级机构设置查询
        public Task<List<Config_File_First_Kind>> SelectCFFKAsync(string sqlserver);

        //I级机构设置添加
        public Task<int> AddCFFKAsync(Config_File_First_Kind cf,string sqlserver);
        //根据主键查询修改信息
        public Task<Config_File_First_Kind?> SelectCFFKIDAsync(int fkk_id, string sqlserver);
        //根据主键修改I级结构设置信息
        public Task<int> UpdateCFFKAsync(Config_File_First_Kind cd, string sqlserver,int id);
        //根据主键进行删除操作
        public Task<int> DeleteCFFKAsync(int fkk_id,string sqlserver);


        //III机构设置的添加 根据 ID 查询I级机构名称
        public Task<Config_File_First_Kind?> SelectCFFKByIDAsync(string sqlserver, string firstKindId);

    }
}
